/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditMantenance.java
 *
 * Created on 22 ม.ค. 2553, 14:33:10
 */

package warehouse;

/**
 *
 * @author Administrator
 */
public class PnlEditMantenance extends javax.swing.JPanel {

    /** Creates new form PnlEditMantenance */
    public PnlEditMantenance() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadEditMan = new javax.swing.JPanel();
        lblHeadEditMan = new javax.swing.JLabel();
        btnManEditDel = new javax.swing.JButton();
        btnManEditCancel = new javax.swing.JButton();
        btnManEditSave = new javax.swing.JButton();
        btnFunPrint = new javax.swing.JButton();
        pnlEditMan = new javax.swing.JPanel();
        lblDMCode = new javax.swing.JLabel();
        txtMBCode = new javax.swing.JTextField();
        txtSuCode = new javax.swing.JTextField();
        lblSuCode = new javax.swing.JLabel();
        txtDMCode = new javax.swing.JTextField();
        lblMBCode = new javax.swing.JLabel();
        txtManDateSent = new javax.swing.JTextField();
        lblManDateSent = new javax.swing.JLabel();
        txtManDateRe = new javax.swing.JTextField();
        lblManDateRe = new javax.swing.JLabel();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadEditMan.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadEditMan.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditMan.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditMan.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditMan.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadEditMan.setText("รายการซ่อม/เครม");

        btnManEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnManEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnManEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnFunPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnFunPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnFunPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnFunPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadEditManLayout = new javax.swing.GroupLayout(pnlHeadEditMan);
        pnlHeadEditMan.setLayout(pnlHeadEditManLayout);
        pnlHeadEditManLayout.setHorizontalGroup(
            pnlHeadEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditManLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadEditMan)
                    .addGroup(pnlHeadEditManLayout.createSequentialGroup()
                        .addGap(0, 0, 0)
                        .addComponent(btnManEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnManEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnManEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        pnlHeadEditManLayout.setVerticalGroup(
            pnlHeadEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditManLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadEditMan)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlHeadEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlHeadEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(btnManEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnManEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnManEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(btnFunPrint, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(4, 4, 4))
        );

        add(pnlHeadEditMan, java.awt.BorderLayout.PAGE_START);

        lblDMCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDMCode.setText("รหัสรายละเอียดส่งซ่อม :");

        txtMBCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        txtSuCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtSuCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtSuCodeActionPerformed(evt);
            }
        });

        lblSuCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSuCode.setText("รหัสผู้จำหน่าย :");

        txtDMCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtDMCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDMCodeActionPerformed(evt);
            }
        });

        lblMBCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblMBCode.setText("รหัสรายการซ่อมบำรุง :");

        txtManDateSent.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtManDateSent.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtManDateSentActionPerformed(evt);
            }
        });

        lblManDateSent.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblManDateSent.setText("วันที่ส่งสินค้า :");

        txtManDateRe.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtManDateRe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtManDateReActionPerformed(evt);
            }
        });

        lblManDateRe.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblManDateRe.setText("วันที่รับสินค้า :");

        javax.swing.GroupLayout pnlEditManLayout = new javax.swing.GroupLayout(pnlEditMan);
        pnlEditMan.setLayout(pnlEditManLayout);
        pnlEditManLayout.setHorizontalGroup(
            pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditManLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblManDateRe, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblManDateSent, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblSuCode, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblDMCode, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblMBCode, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtSuCode, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                    .addComponent(txtManDateSent, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                    .addComponent(txtMBCode, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)
                    .addComponent(txtManDateRe)
                    .addComponent(txtDMCode))
                .addContainerGap(408, Short.MAX_VALUE))
        );
        pnlEditManLayout.setVerticalGroup(
            pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditManLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMBCode)
                    .addComponent(txtMBCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDMCode)
                    .addComponent(txtDMCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtSuCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSuCode))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtManDateSent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblManDateSent))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditManLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblManDateRe)
                    .addComponent(txtManDateRe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(271, Short.MAX_VALUE))
        );

        add(pnlEditMan, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtSuCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtSuCodeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtSuCodeActionPerformed

    private void txtDMCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDMCodeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtDMCodeActionPerformed

    private void txtManDateSentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtManDateSentActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtManDateSentActionPerformed

    private void txtManDateReActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtManDateReActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtManDateReActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnFunPrint;
    private javax.swing.JButton btnManEditCancel;
    private javax.swing.JButton btnManEditDel;
    private javax.swing.JButton btnManEditSave;
    private javax.swing.JLabel lblDMCode;
    private javax.swing.JLabel lblHeadEditMan;
    private javax.swing.JLabel lblMBCode;
    private javax.swing.JLabel lblManDateRe;
    private javax.swing.JLabel lblManDateSent;
    private javax.swing.JLabel lblSuCode;
    private javax.swing.JPanel pnlEditMan;
    private javax.swing.JPanel pnlHeadEditMan;
    private javax.swing.JTextField txtDMCode;
    private javax.swing.JTextField txtMBCode;
    private javax.swing.JTextField txtManDateRe;
    private javax.swing.JTextField txtManDateSent;
    private javax.swing.JTextField txtSuCode;
    // End of variables declaration//GEN-END:variables

}
